package com.baizhi.dao;

import com.baizhi.entity.Employee;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EmployeeDAO {
    /*查所有*/
    public List<Employee> selectAll();
    /*根据id查*/
    public Employee selectById(Integer eid);
    /*增*/
    public void insert(Employee employee);
    /*删*/
    public void delete(Integer eid);
    /*改*/
    public void update(Employee employee);

    /*分页查询*/
    public List<Employee> selectByPage(@Param("beginCount") int beginCount , @Param("pageSize")int pageSize);
    /*查询总条数*/
    public int selectTotalCount();

    /*批量删除*/
    public void deleteMore(int[] eids);
}
